//
//  FooterTitleView.m
//  CarTown
//
//  Created by xionghao on 15/8/29.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "FooterTitleView.h"

@implementation FooterTitleView
+(instancetype)title{
    FooterTitleView *title=[[FooterTitleView alloc]initWithFrame:CGRectMake(0, 50, XHScreenwidth, 30)];
    return title;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        CGFloat width=(XHScreenwidth-16)/7;
        
        UILabel *leftlable=[[UILabel alloc]init];
        leftlable.frame=CGRectMake(8, 0, width*3, 30);
        leftlable.textColor=textnormalGary;
        leftlable.textAlignment=NSTextAlignmentLeft;
        leftlable.font=[UIFont systemFontOfSize:13];
        leftlable.text=@"抢标方";
        [self addSubview:leftlable];
        UILabel *midlable=[[UILabel alloc]init];
        midlable.frame=CGRectMake(8+(3*width), 0, width*2, 30);
        midlable.textColor=textnormalGary;
        midlable.font=[UIFont systemFontOfSize:13];
        midlable.text=@"抢标价";
        midlable.textAlignment=NSTextAlignmentCenter;
        [self addSubview:midlable];
        UILabel *right=[[UILabel alloc]init];
        right.frame=CGRectMake(8+(5*width), 0, width*2, 30);
        right.textColor=textnormalGary;
        right.font=[UIFont systemFontOfSize:13];
        right.text=@"抢标时间";
        right.textAlignment=NSTextAlignmentRight;
        [self addSubview:right];
        self.backgroundColor=[UIColor whiteColor];
        self.layer.borderColor=[BoderColor CGColor];
        self.layer.borderWidth=1;
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
